package com.wangt.biz.socket;

import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 *socket 枚举支持
 * @author gongtan
 */
public enum TCPCache {
    INSTANCE;

    private Map<String, ChannelHandlerContext> clientInfoContext = new ConcurrentHashMap<>();
    private Map<String, Channel> serverInfoContext = new ConcurrentHashMap<>();

    public Map<String, ChannelHandlerContext> getClientInfoContext() {
        return clientInfoContext;
    }

    public Map<String, Channel> getServerInfoContext() {
        return serverInfoContext;
    }
}
